package com.xhwl.data.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xhwl.common.dto.cent.sdata.AppPermissionMenuDTO;
import com.xhwl.common.dto.cent.sdata.PermissionDTO;
import com.xhwl.common.pojo.cent.sdata.SdataAccountQuickEntry;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 * 用户项目首页快接入口 Mapper 接口
 * </p>
 *
 * @author mx
 * @since 2022-03-04
 */
@Repository
public interface SdataAccountQuickEntryDao extends BaseMapper<SdataAccountQuickEntry> {

    void deleteByList(@Param("projectId") int projectId, @Param("userId") int userId);

    void insertByList(@Param("list")List<SdataAccountQuickEntry> list);

    List<PermissionDTO> selectList(@Param("uid")Integer uid, @Param("projectId")Integer projectId);
}
